﻿using SinBiota.Model.Entities;
using FluentNHibernate.Mapping;

namespace SinBiota.Model.Persistence.NHibernateMappings
{
    public class LogMapping : ClassMap<Log> 
    {
        public LogMapping()
        {
            Id(c => c.Id);
            Map(c => c.Date).Not.Nullable();
            Map(c => c.Thread).Not.Nullable().Length(255);
            Map(c => c.Level).Not.Nullable().Length(50);
            Map(c => c.Logger).Not.Nullable().Length(255);
            Map(c => c.AuthUser).Length(50);
            Map(c => c.Message).Not.Nullable().Length(4000);
            Map(c => c.Exception).Not.Nullable().Length(2000);
        }
    }
}
